package ihm;

import java.awt.BorderLayout;
import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.JToolBar;
import javax.swing.JLabel;
import javax.swing.JDesktopPane;
import javax.swing.JButton;
import javax.swing.JMenuBar;
import java.awt.Font;
import javax.swing.SwingConstants;
import java.awt.Insets;
import javax.swing.JTextField;
import javax.swing.JMenu;
import javax.swing.JMenuItem;
import java.awt.Color;

public class t extends JFrame {

	private JPanel contentPane;
	private JTextField txtBienvenue;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					t frame = new t();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public t() {
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(100, 100, 733, 501);
		
		JMenuBar menuBar = new JMenuBar();
		setJMenuBar(menuBar);
		
		JMenu mnGestionDesTches = new JMenu("Gestion des T\u00E2ches");
		menuBar.add(mnGestionDesTches);
		
		JMenuItem mntmAjouter = new JMenuItem("Ajouter");
		mnGestionDesTches.add(mntmAjouter);
		
		JMenuItem mntmModifier = new JMenuItem("Modifier");
		mnGestionDesTches.add(mntmModifier);
		
		JMenuItem mntmSupprimer = new JMenuItem("Supprimer");
		mnGestionDesTches.add(mntmSupprimer);
		
		txtBienvenue = new JTextField();
		txtBienvenue.setForeground(new Color(255, 255, 255));
		txtBienvenue.setBackground(new Color(25, 25, 112));
		txtBienvenue.setHorizontalAlignment(SwingConstants.CENTER);
		txtBienvenue.setEditable(false);
		txtBienvenue.setFont(new Font("Tahoma", Font.BOLD | Font.ITALIC, 20));
		txtBienvenue.setText("Bienvenue Pierre Faure !");
		menuBar.add(txtBienvenue);
		txtBienvenue.setColumns(1);
		
		JButton btnDconnexion = new JButton("D\u00E9connexion");
		menuBar.add(btnDconnexion);
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(contentPane);
		contentPane.setLayout(null);
	}
}
